#include <iostream>

class Interger
{
private:
    int m_a;

public:
    explicit Interger(int a)//
    {
        std::cout<<"带参构造"<<std::endl;
        m_a = a;
    }

    Interger()
    {
        std::cout<<"无参构造"<<std::endl;
    }

    ~Interger()
    {
        std::cout<<"end"<<std::endl;
    }

    int GetInterger()
    {
        return m_a;
    }
};

int main()
{
    Interger i(3);
    //构造函数的隐式声明：数值会被隐式构造类的对象
    // i = 20;
    std::cout<<i.GetInterger()<<std::endl;

    return 0;
}